import request from '@/utils/request'
//点赞-浏览-下载-分享-收藏接口
export function sysConcernedLogQuery(data) {
  //点赞-浏览-下载-分享-收藏接口信息分页列表
  return request({
    method: 'get',
    url: '/sysConcernedLog/query',
    params: data,
  })
}

export function sysConcernedLogQuerySumOpt(data) {
  //查询一条点赞-浏览-下载-分享-收藏接口信息
  return request({
    method: 'get',
    url: '/sysConcernedLog/querySumOpt',
    params: data,
  })
}

export function sysConcernedLogAdd(data) {
  //添加一条点赞-浏览-下载-分享-收藏接口信息
  return request({
    method: 'post',
    url: '/sysConcernedLog/add',
    data,
  })
}
export function sysConcernedLogOpenApiAdd(data) {
  //添加一条点赞-浏览-下载-分享-收藏接口信息
  return request({
    method: 'post',
    url: '/sysConcernedLog/openApi/add',
    data,
  })
}

export function sysQueryMyOptResource(data) {
  //我的收藏
  return request({
    method: 'get',
    url: '/sysConcernedLog/queryMyOptResource',
    params: data,
  })
}

export function sysConcernedLogDelete(id) {
  //删除我的收藏
  return request({
    method: 'get',
    url: '/sysConcernedLog/removeCollect/' + id,
  })
}
